/**
 * Copyright (c) 2025 Huawei Technologies Co., Ltd.
 * This file is a part of the CANN Open Software.
 * Licensed under CANN Open Software License Agreement Version 1.0 (the "License").
 * Please refer to the License for details. You may not use this file except in compliance with the License.
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE.
 * See LICENSE in the root of the software repository for the full text of the License.
 */

/*!
 * \file fused_add_topk_div_tiling.h
 * \brief
 */
#ifndef OPS_BUILT_IN_OP_TILING_RUNTIME_FUSED_ADD_TOPK_DIV_H_
#define OPS_BUILT_IN_OP_TILING_RUNTIME_FUSED_ADD_TOPK_DIV_H_
#include <cmath>
#include "register/tilingdata_base.h"
#include "tiling/tiling_api.h"
#include "tiling/tiling_base.h"
#include "register/op_def_registry.h"
#include "log/ops_log.h"
#include "error/ops_error.h"

namespace optiling {
BEGIN_TILING_DATA_DEF(FusedAddTopkDivTilingData)
    TILING_DATA_FIELD_DEF(uint32_t, firstDimSize);
    TILING_DATA_FIELD_DEF(uint32_t, secondDimSize);
    TILING_DATA_FIELD_DEF(uint32_t, addNumDimSize);
    TILING_DATA_FIELD_DEF(uint32_t, groupNum);
    TILING_DATA_FIELD_DEF(uint32_t, groupTopk);
    TILING_DATA_FIELD_DEF(uint32_t, n);
    TILING_DATA_FIELD_DEF(uint32_t, k);
    TILING_DATA_FIELD_DEF(uint32_t, activateType);
    TILING_DATA_FIELD_DEF(uint32_t, isNorm);
    TILING_DATA_FIELD_DEF(float, scale);
    TILING_DATA_FIELD_DEF(uint32_t, groupEles);
    TILING_DATA_FIELD_DEF(uint32_t, blockNum);
    TILING_DATA_FIELD_DEF(uint32_t, ubFactorElement);
    TILING_DATA_FIELD_DEF(uint32_t, batchPerCore);
    TILING_DATA_FIELD_DEF(uint32_t, tailBatch);
    TILING_DATA_FIELD_DEF(uint32_t, tilingKey);
    TILING_DATA_FIELD_DEF(uint32_t, dtype);
    TILING_DATA_FIELD_DEF(uint32_t, tempSize);
    TILING_DATA_FIELD_DEF(uint32_t, enableExpertMapping);
    TILING_DATA_FIELD_DEF(uint32_t, expertNum);
    TILING_DATA_FIELD_DEF(uint32_t, tableDim);
    TILING_DATA_FIELD_DEF(uint32_t, reserved);
    TILING_DATA_FIELD_DEF(uint64_t, workspacePerCore);
END_TILING_DATA_DEF;

REGISTER_TILING_DATA_CLASS(FusedAddTopkDiv, FusedAddTopkDivTilingData)

struct FusedAddTopkDivCompileInfo {};
} // namespace optiling
#endif // OPS_BUILT_IN_OP_TILING_RUNTIME_FUSED_ADD_TOPK_DIV_H_